package com.wilmer.paperResults.domain;

import java.math.BigDecimal;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.wilmer.common.annotation.Excel;
import com.wilmer.common.core.domain.BaseEntity;

/**
 * 考试成绩对象 yw_paper_results
 *
 * @author zl
 * @date 2024-04-23
 */
public class YwPaperResults extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long resultId;

    /**
     * 学生（用户）表id
     */
    @Excel(name = "学生", readConverterExp = "用=户")
    private Long studentId;

    /**
     * 试卷表id
     */
    @Excel(name = "试卷表id")
    private Long paperId;

    /**
     * 学生在该试卷上的总分数
     */
    private BigDecimal totalScore;

    /**
     * 学生完成试卷所用的时间
     */
    private Integer timeTaken;
    private String paperNama;
    private BigDecimal totalScored;
    private Integer timeLimit;
    private String nickName;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPaperNama() {
        return paperNama;
    }

    public void setPaperNama(String paperNama) {
        this.paperNama = paperNama;
    }

    public BigDecimal getTotalScored() {
        return totalScored;
    }

    public void setTotalScored(BigDecimal totalScored) {
        this.totalScored = totalScored;
    }

    public Integer getTimeLimit() {
        return timeLimit;
    }

    public void setTimeLimit(Integer timeLimit) {
        this.timeLimit = timeLimit;
    }

    public void setResultId(Long resultId) {
        this.resultId = resultId;
    }

    public Long getResultId() {
        return resultId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setPaperId(Long paperId) {
        this.paperId = paperId;
    }

    public Long getPaperId() {
        return paperId;
    }

    public void setTotalScore(BigDecimal totalScore) {
        this.totalScore = totalScore;
    }

    public BigDecimal getTotalScore() {
        return totalScore;
    }

    public void setTimeTaken(Integer timeTaken) {
        this.timeTaken = timeTaken;
    }

    public Integer getTimeTaken() {
        return timeTaken;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("resultId", getResultId())
                .append("studentId", getStudentId())
                .append("paperId", getPaperId())
                .append("totalScore", getTotalScore())
                .append("timeTaken", getTimeTaken())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
